In the previous
practice exercise, you practiced how to use an
if activity in a workflow. In this video, you'll
be introduced to the Switch Activity.
Let's get started. A Switch Activity executes
a set of statements out of multiple based on the
value of a specific example. It is used in place of
an if activity when at least three potential
courses of actions are needed. It can be useful to categorize data according to a
custom number of cases. Here, the condition does
not hold a Boolean value, like in the case of an if
statement, but multiple values. By default, the Switch Activity uses the integer argument, but you can change it from the type argument property in the properties panel
of the activity. Let's take an example here. A week has seven days. Each of the seven days can
be associated with a number. For example, 1-7 from
Monday to Sunday. To display the name of
the day associated with a particular number seven cases can be built using
the Switch Activity. The next video is
a demonstration of this example using
the Switch Activity. That's it for this video.
Thanks for watching.